/*
 * @描述:
 * @作者: 约訂
 * @Date: 2023-06-15 09:54:41
 * @LastEditTime: 2023-07-04 14:50:52
 * @修改人员: 约訂
 */
// api/index.ts
// vite中读取文件需要使用import.meta.globEager 或 import.meta.glob
const requireComponent = import.meta.globEager('./module/*.ts');
const apiComponent = import.meta.globEager('./function/*.ts');
let modules: any = {};
let apiFunction: any = {};
Object.entries(requireComponent).forEach(([k, v]) => {
    Object.assign(modules, v);
});
Object.entries(apiComponent).forEach(([k, v]) => {
    Object.assign(apiFunction, v);
});

export default {
    modules,
    apiFunction
};
